<?php
use EasyWeChat\Factory;

$config = [
    'app_id' => 'wxe2a219a14b77bd56',
    'secret' => '49136f1c7729db4727531b520932271f',
    'token' => 'shang',
    'response_type' => 'array',
    //...
];

$app = Factory::officialAccount($config);

$response = $app->server->serve();

// 将响应输出
$response->send();exit; // Laravel 里请使用：return $response;